package io.coderyeah.org.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.TypeAlias;

import java.io.Serializable;

/**
 * (TEmployee)实体类
 *
 * @author makejava
 * @since 2022-08-31 11:44:00
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TypeAlias("employee")
public class Employee extends BaseDomain implements Serializable {

    private String username;

    private String phone;

    private String email;

    private String salt;

    private String password;

    private Integer age;
    /**
     * 员工状态 1启用，0禁用
     */
    private Integer state = 1;

    private Long departmentId;

    private Long logininfoId;

    private Long shopId;

    // 角色id
    @TableField(exist = false)
    private Long roleId;

    // 员工所属部门
    @TableField(exist = false)
    private Department department;
}

